package com.qf03;

public class TestJoin {
    public static void main(String[] args) {
        JoinThread jt1 = new JoinThread();
        jt1.start();

        try {
            jt1.join();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        for (int i = 0; i < 20; i++) {
            System.out.println(Thread.currentThread().getName()+"......"+i);
            try {
                Thread.sleep(100);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
